import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
    mode:'history',
    routes: [
        {
            path: '/',
            redirect: '/index'
        },        
        {
            path: '/index',
            component: () => import(/* webpackChunkName: "pc" */ '../components/Pc.vue'),            
            children:[
                {
                    path:'/',
                    redirect:'/index/toushi'
                },
                {
                    path:'/index/toushi',
                    component:()=>import(/* webpackChunkName:"toushi" */ '../components/Carousels.vue'),
                    meta: { title: '透视轮播图' }
                }                
            ]
        },   
        {
            path: '/mobile',
            component: () => import(/* webpackChunkName: "mobile" */ '../components/Mobile.vue'),
            
        }
    ]
});